<?php
class ecole{
	private $nom;
	private $mdp;
	private $email;
	private $tel;
	
	
	public function construct($vnom,$vmdp,$vemail,$vtel){
		$this->nom = $vnom;
		$this->mdp = $vmdp;
		$this->email = $vemail;
		$this->tel = $vtel;
	}
	
	
	public function __get($propriete){
		switch($propriete){
			case 'nom' :{
				return $this->nom;
				break;
			}
			case 'mdp' :{
				return $this->mdp;
				break;
			}
			case 'email' :{
				return $this->email;
				break;
			}
			case 'tel' :{
				return $this->tel;
				break;
			}
		}
	}
	
	public function __set($propriete,$valeur){
		switch($propriete){
			case 'nom' :{
				$this->nom = $valeur;
				break;
			}
			case 'mdp' :{
				$this->mdp = $valeur;
				break;
			}
			case 'email' :{
				$this->email = $valeur;
				break;
			}
			case 'tel' :{
				$this->tel = $valeur;
				break;
			}
		}
	}
}
